The function that you call to send the interpolated value to the receiving track is defined as a universal procedure in systems that support the Macintosh Code Fragment Manager (CFM) or is defined as a data procedure for non-CFM systems:
typedef UniversalProcPtr TweenerDataUPP; /* CFM */
typedef TweenerDataProcPtr TweenerDataUPP; /* non-CFM */
The TweenerDataUPP function pointer specifies the function the tween component calls with the value generated by the tween operation. A tween component calls this function from its implementation of the TweenerDoTween function.
typedef pascal ComponentResult (*TweenerDataProcPtr)(
TweenRecord *tr,
void *tweenData,
long tweenDataSize,
long dataDescriptionSeed,
Handle dataDescription,
ICMCompletionProcRecordPtr asyncCompletionProc,
ProcPtr transferProc,
void *refCon);
You call this function by invoking the function specified in the tween record's dataProc field.
| Previous | Chapter Contents | Chapter Top | Next |